package next.apps.service;

import next.apps.bean.GoodsDetail;
import next.apps.bean.StockInfo;
import next.apps.biz.StockBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StockService {
    @Autowired
    private StockBiz stockBiz;
    public Map<String,Integer>  mergeNumber(GoodsDetail detail){
        return stockBiz.mergeNumber(detail);
    }
    public List<StockInfo> selectByGoodsId(List<String> goodsIdList){
        return stockBiz.selectByGoodsId(goodsIdList);
    }

    public void updateByList(List<StockInfo> stockInfoList){
        stockBiz.updateByList(stockInfoList);
    }
}
